package com.mall.common.security.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * token 配置类
 *
 * @author Sam
 */
@Component
@ConfigurationProperties(prefix = "custom.token")
public class TokenProp {

    /**
     * 密文
     */
    private static String secret;

    /**
     * 过期时间
     */
    private static long expire;

    /**
     * 最大刷新时长
     */
    private static long refresh;


    public static String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        TokenProp.secret = secret;
    }

    public static long getExpire() {
        return expire;
    }

    public void setExpire(long expire) {
        TokenProp.expire = expire;
    }

    public static long getRefresh() {
        return refresh;
    }

    public void setRefresh(long refresh) {
        TokenProp.refresh = refresh;
    }
}
